import {request} from "@/network/request";
//获取
export function getPositionList(page){
    return request({
        url:"/api/boss/position/getPositionList?page="+page,
        method:'post',
    })
}

//新增
export function getAddPosition(data) {
    return request({
        url: "/api/boss/position/addPosition",
        method: 'post',
        data
    })
}

//删除
export function DeletePosition(id) {
    return request({
        url: "/api/boss/position/deletePosition/" + id,
        method: "delete"
    })
}

//更新
export function UpdatePosition(data) {
    return request({
        url: "/api/boss/position/updatePosition",
        method: 'post',
        data
    })
}